import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import enteringFactor from '@/components/enteringFactor'
import InvoiceIdentification from '@/components/InvoiceIdentification' //发票识别
import InvoiceClip from '@/components/InvoiceClip' //发票识别


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'HelloWorld',
            component: HelloWorld
        },
        {
            path: '/HelloWorld/:type/:userId',
            name: 'HelloWorld',
            component: HelloWorld
        },
        {
            path: '/enteringFactor/:userId/:type',
            name: 'enteringFactor',
            component: enteringFactor
        },
        { //发票识别
            path: '/InvoiceIdentification/:type/:userId',
            name: 'InvoiceIdentification',
            component: InvoiceIdentification
        },
        { //发票夹
            path: '/InvoiceClip/:userId',
            name: 'InvoiceClip',
            component: InvoiceClip
        }
    ]
})
